package com.nuanqian.springbootdubbodao.mapper;


import com.nuanqian.springbootdubboentity.entity.DevicePolicy;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 李蒙
 * @date 2020/4/23 13:51
 */
@Repository
public interface DevicePolicyMapper {

    int insert(DevicePolicy policy);

    int updateByPrimaryKey(DevicePolicy policy);

    List<DevicePolicy> selectByIdList(List<Long> policyIds);

    DevicePolicy selectByPrimaryKey(Long id);

    int deleteByPrimaryKey(Long id);

    int checkPolicyName(DevicePolicy policy);



}
